import tornado.web

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        url = self.request.protocol + "://" + self.request.host + self.request.uri
        self.render('www/index.html', cur_url=url)